home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rjs.lha / RJS / CmdLine / src / makefile < prev    next >
Makefile  |  1991-06-14  |  650b  |  47 lines

  1. #
  2. #
  3. # Makefile 
  4. #
  5.  
  6. CC=CC
  7. YFLAGS = -d
  8.  
  9. .SUFFIXES: .o .c .y .l .s .C
  10. #
  11. PROG=qtest
  12. #
  13. # C++ rules
  14. #
  15. .C.o:
  16.     $(CC) $(CFLAGS) -c $*.C
  17.  
  18. .C.a:
  19.     $(CC) -c $(CFLAGS) $<
  20.     ar rv $@ $*.o
  21.     rm -f $*.o
  22.  
  23.  
  24. RJSROOT=../..
  25. RJSDIR=$(RJSROOT)/RJS
  26. RLIB  = $(RJSDIR)/$(MACHINE)/libRJS.a
  27. CFLAGS= -I$(RJSROOT)
  28.  
  29. .PRECIOUS: $(RLIB)
  30.  
  31. $(RLIB) :    $(RLIB)(CmdLine.o)        \
  32.         $(RLIB)(CmdLineWord.o)        \
  33.         $(RLIB)(CmdOpt.o)        \
  34.         $(RLIB)(CmdOpt_boolean.o)    \
  35.         $(RLIB)(CmdOpt_int.o)        \
  36.         $(RLIB)(CmdOpt_double.o)    \
  37.         $(RLIB)(CmdOpt_string.o)    \
  38.         $(RLIB)(CmdOpt_int_range.o)    \
  39.         $(RJSDIR)/CmdLine.h
  40.     ranlib $(RLIB)
  41.  
  42. $(RJSDIR)/CmdLine.h: CmdLine.h
  43.     cp CmdLine.h $(RJSDIR)
  44.  
  45. clean:
  46.     rm -f *.o core
  47.